package com.firmboy.big;

import org.junit.Test;

import java.util.stream.IntStream;

/**
 * 测试全角和半角的区别
 *
 * @author firmboy
 * @create 2018-04-25 上午11:11
 **/
public class UnioTest {

    @Test
    public void test(){
        String str = "？，";

        char[] chars = str.toCharArray();

        for (int i=0;i<chars.length;i++){
            int charValue = (int)chars[i];

            System.out.println("char:"+charValue);
        }

        for (int i=0;i<str.length();i++){
            int charAt = str.charAt(i);
            System.out.println("char:"+charAt);
        }
    }

}
